package com.meeting.order.mapper;

import com.meeting.order.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    // 登录
    User login(@Param("username") String username, @Param("password") String password);

    // 根据用户名查询用户
    User selectUserByUsername(@Param("username") String username);

    // 注册
    int register(@Param("username") String username, @Param("password") String password);
}